<!DOCTYPE html>
<html>
<head>
    {include file="../application/common/header.html" /}
    <style>
        .datagrid-btable tr{height: 30px;}
    </style>
</head>

<body>
    <div id="student_zbtb">
        <form id="student_zbForm" class="m5">
            <?php echo currTerm()["termName"]?>
            <select class="form-control1" name="grade" id="grade" onchange="getClazz('student_zb',this.value)"></select>
            <select class="form-control1" name="clazz" id="clazz"></select>
            学生姓名：
            <input class="form-control1" type="text" name="studentName" id="studentName">
            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-search'" onclick="searchForm('student_zb')">查询</a>
            <a class="easyui-linkbutton l-btn l-btn-small" data-options="iconCls:'icon-clear'" onclick="resetForm('student_zb')">重置</a><br/>
        </form>
    </div>
    <table id="student_zbdg">
        <thead>
            <tr>
                <th data-options="field:'年级号',title:'年级号',width:50,formatter:function(value,row,index){
                    return row.gradeName;
                }"></th>
                <th data-options="field:'班号',title:'班号',width:50,editor:{
                    type:'numberbox',options:{required:true}
                }"></th>
                <th data-options="field:'学号',title:'学号',width:50,editor:{
                    type:'numberbox',options:{required:true}
                }"></th>
                <th data-options="field:'姓名',title:'姓名',width:50"></th>       
            </tr>
        </thead>
        
    </table>

    <script type="text/javascript">
        $(function(){
            var url = "/student/student_zb";
            initDatagridAdmin("student_zb",url,0,0,1,1,0);
            initGrade("student_zb");
        })
        function initDatagrid(cf,url) {
            $("#"+cf+"dg").datagrid({
                url: url + "/pageQuery.html",
                rownumbers: true,
                striped: true,
                border: false,
                pagination: true,
                pageSize: 30,
                fitColumns: true,
                autoRowHeight: false,
                singleSelect: true,
                fit: true,
                toolbar: []
            })
            var tb = $("#"+cf+"tb").html();
            if(tb) {
                $(".datagrid-toolbar").prepend(tb);
                $("#"+cf+"tb").remove();
            }
        }
    </script>
</body>
</html>